import __00SetRelation as sr
import _00SetFunc as ss 

#判断等价类
Xm,Ym,n=10,8,10 
X=set(range(Xm))
Y=set(range(Ym))
R0=sr.createrelation(X,Y,n)
R=sr.t(X,sr.s(X,sr.r(X,R0)))
tv=sr.isequivalent(X,R)
ss.drawgraph(R)
print("R",R)
print(tv)